export function messageModelColumns() {
  return [
    {
      title: '名称',
      key: 'name',
      ellipsis: true,
      minWidth: 140
    },
    {
      title: '编码',
      key: 'code',
      ellipsis: true,
      minWidth: 140
    },
    {
      title: this.$t('common.operating'),
      align: 'center',
      fixed: 'right',
      width: 170,
      render: (h, params) => {
        return h('RowTools', {
          props: {
            data: [
              {
                type: 'icon',
                icon: 'md-create',
                text: this.$t('common.edit'),
                handle: () => {
                  this.editMailTpl(params.row)
                }
              },
              {
                type: 'icon',
                icon: 'ios-trash',
                text: this.$t('common.delete'),
                handle: () => {
                  this.delMailTpl(params.row)
                }
              }
            ]
          }
        })
      }
    }
  ]
}
